package server;

import ocsf.server.ConnectionToClient;

/**
 * The Class ObMessage.
 * saves the message received from observer and the connection client who sent it ( if there is such)
 * 
 */
public class ObMessage 
{
	 
 	/** The message from observable. */
 	private String messageFromObservable;
	 
 	/** The client. */
 	private ConnectionToClient client;
	 
	 /**
 	 * Instantiates a new ob message.
 	 *
 	 * @param messageFromObservable the message from observable server
 	 * @param client the client
 	 */
 	public ObMessage(String messageFromObservable,ConnectionToClient client)
	 {
		 this.messageFromObservable = messageFromObservable;
		 this.client = client;
	 }

	/**
	 * Gets the client.
	 *
	 * @return the client
	 */
	public ConnectionToClient getClient() {
		return client;
	}

	/**
	 * Gets the message from observable server.
	 *
	 * @return the message from observable server
	 */
	public String getMessageFromObservable() {
		return messageFromObservable;
	}
}
